package com.lxhotel.agentmcp.config;

import com.lxhotel.agentmcp.filter.WebAuthInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * This class function is xxx.
 *
 * @author yangbo
 * @date 2025/09/29
 */
@Configuration
public class WebMvcConfiguration implements WebMvcConfigurer {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new WebAuthInterceptor())
                .addPathPatterns("/sse","/mcp/messages");
    }
}
